github.com/0chain/gosdk@v1.17.11/docs/uml/new allocation.puml (about) 1 @startuml 2 participant "<size:20><&terminal></size> ./zbox newallocation" as cli 3 collections gosdk 4 5 alt cost only 6 cli -> gosdk: GetAllocationMinLock() 7 gosdk -> gosdk: check initialized sdk 8 gosdk -> gosdk: create allocation request data 9 gosdk -> gosdk: make SC rest api call 10 gosdk -> gosdk: check response result 11 gosdk -> gosdk: create a new map for response 12 gosdk --> cli: return response of min lock demand 13 else 14 cli -> gosdk: CreateAllocation() 15 gosdk -> gosdk: check initialized sdk 16 gosdk -> gosdk: create allocation request 17 gosdk -> gosdk: create smart contract txn data 18 gosdk -> gosdk: send smart contract txn value 19 gosdk -> cli: return allocation ID 20 cli -> cli: store allocation 21 end 22 @enduml